import * as menuData from "@/api/menuData"
const user = {
  state: {},

  mutations: {
    SET_PERMISSIONLIST: (state, permissionList) => {
      state.permissionList = permissionList
    },
  },

  actions: {
    getMenuList({commit}){
      return new Promise((resolve, reject)=>{
        commit('SET_PERMISSIONLIST',menuData.menu)
        resolve(menuData)
        if(!menuData)reject()
      })
    }
  }
};

export default user;
